package com.fzrskj.cloud.free.core.enums;

/**
 * DomainPriceByRegTypeEnum.
 *
 * @author wzj.
 *         Created on 2019/5/20 0001.
 */
public enum DomainPriceByRegTypeEnum {
    /**
     * 域名按注册商设置价格.
     */
    DOMAIN_PRICE_BY_REG_TYPE_OK("Y"),
    /**
     * 域名按注册商设置价格.
     */
    DOMAIN_PRICE_BY_REG_TYPE_NO("N");

    /**
     * 值.
     */
    private String val;

    /**
     * 构造.
     * @param val val
     */
    DomainPriceByRegTypeEnum(String val) {
        this.val = val;
    }

    /**
     * 获取值.
     * @return val.
     */
    public String getVal() {
        return this.val;
    }

    /**
     * 是否等于.
     * @param comparisonVal comparison val.
     * @return Boolean
     */
    public Boolean equals(String comparisonVal) {
        return this.val.equals(comparisonVal);
    }
}
